<?php

namespace Home\Controller;

use Think\Controller;

/**
 * 运单 Controller
 *
 * @author 李静波
 *        
 */
class ExpressController extends PSIBaseController {

	/**
	 * 寄件 - 主页面
	 */
	public function apply() {
		$this->initVar();
		
		$this->assign("title", "寄件");
		
		$this->display();
	}

	/**
	 * 寄件POST
	 */
	public function applyPOST() {
		if (IS_POST) {
			
			$this->ajaxReturn(array(
					"data" => I("post.recName")
			));
		}
	}

	/**
	 * 运单查询
	 */
	public function query() {
		$this->initVar();
		
		$this->assign("title", "运单查询");
		
		if (IS_POST) {
			$this->assign("is_post", "1");
			$this->assign("ref", I("post.ref"));
		}
		
		$this->display();
	}
}